<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}

<div class="x-nav">
	<span class="layui-breadcrumb">
		<a>首页</a>
		<a>彩票管理</a>
		<a>主玩法管理</a>
	</span>
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
		<i class="layui-icon" style="line-height:30px">ဂ</i>
	</a>
</div>

<div class="x-body">
	<div class="layui-main">
    	<form class="layui-form" action="?" method="post">
    		<input type="hidden" name="m" value="{$m}" />
    		<input type="hidden" name="c" value="{$c}" />
    		<input type="hidden" name="id" value="{$info['id']}" />
    		<input type="hidden" name="operation" value="playmain_add"/>
    		<div class="layui-form-item">
    			<label class="layui-form-label">玩法：</label>
    			<div class="layui-input-inline">
    				<input type="text" name="title" required="true" value="{$info['title']}" placeholder="玩法名称" autocomplete="off" class="layui-input">
    			</div>
    			<div class="layui-form-mid layui-word-aux"></div>
    		</div>
    		<div class="layui-form-item" style="z-index: 99999;">
    			<label class="layui-form-label">设置归属:</label>
    			<div class="layui-input-inline">
    				<select name="cate_id">
    					<option value="0">选择彩种类别</option>
    					{loop $cateIdKey as $val}
    						<option value="{$val['id']}" {if $info['cate_id'] == $val['id']} selected="selected" {/if}>{$val['name']}</option>
    					{/loop}
    				</select>
    			</div>
    		</div>
    		<div class="layui-form-item" style="z-index: 1;">
    			<label class="layui-form-label">代码标识：</label>
    			<div class="layui-input-inline">
    				<input type="text" name="en_code" value="{$info['en_code']}" placeholder="玩法标识" autocomplete="off" class="layui-input">
    			</div>
    			<div class="layui-form-mid layui-word-aux"></div>
    		</div>
    		<div class="layui-form-item" style="z-index: 1;">
    			<label class="layui-form-label">排序：</label>
    			<div class="layui-input-inline">
    				<input type="text" name="sort" value="{$info['sort']}" placeholder="展示排序" autocomplete="off" class="layui-input">
    			</div>
    			<div class="layui-form-mid layui-word-aux"></div>
    		</div>
    		<div class="layui-form-item">
    			<label class="layui-form-label">栏目状态:</label>
    			<div class="layui-input-inline">
    				{if $info}
    					<input type="radio" name="status" value="1" title="开启" {if $info['status'] == 1}checked="checked"{/if}>开启
    					<input type="radio" name="status" value="2" title="关闭" {if $info['status'] == 2}checked="checked"{/if}>关闭
    				{else}
    					<input type="radio" name="status" value="1" title="开启" checked="checked">开启
    					<input type="radio" name="status" value="2" title="关闭" >关闭
    				{/if}
    			</div>
    		</div>
    		<div class="layui-form-item">
    			<label for="" class="layui-form-label"></label>
    			<div class="layui-input-inline">
    				<a class="layui-btn" href='javascript:history.bak();'>返回</a>
    				<button class="layui-btn" type="submit">确定</button>
    			</div>
    		</div>
    	</form>
	</div>
</div>

{template index/footer}
